package com.java.lesson.lesson5;


public class Demo01 {
    public static void main(String[] args) {
        //没有名字初始化的类，不用将实例保存在变量中
        new B().eat();
        UseService useService = new UseService() {
            @Override
            public void Hello() {

            }
        };
    }
}

